import {
  get,
  post,
  put,
  del,
  baseUrl,
  dep
} from "../utils/request"

export const ApigetPage = (url) => get(url)

export const Apilogin = (params) => post("/api/user/user/code2session", params)

export const ApiGetDepartMent = (data) => get("/api/user/consultation/departmentList", data)


//获取医生科室列表接口
export const ApiGetDepartmentDoctorList = (params) => get("/api/user/consultation/departmentDoctorList", params)


//获取医生详情数据
export const ApiGetdoctorInfo = (params) => get("/api/user/consultation/doctorInfo", params)

//调用身份证照片数据
export const ApiCardPictureIdentify = (data) => post("/api/user/user/cardPictureIdentify", data)
//获取手机验证码
export const ApiGetCaptchaCode = (data) => post("/api/user/user/getCaptchaCode", data)



//查看就诊人
export const ApiPatientCardList = () => get("/api/user/user/patientCardList", )
//添加就诊人
export const ApiAddPatient = (params) => post("/api/user/user/createPatientCard", params)

//修改就诊人
export const ApiEditPatient = (id, params) => post("/api/user/user/updatePatientCard/" + id, params)

// 删除就诊人
export const ApiDelPatient = (id) => del("/api/user/user/deletePatientCard/" + id)

//是否默认联系人
export const ApiDefaultCard = (id) => post("/api/user/user/defaultCard/" + id)



//确认下单
export const ApiConsultationOrder = (data) => post("/api/user/consultation/order", data)

export const ApiOrder = (id) => post("/api/user/consultation/pay/" + id)


// 获取到下单的列表
export const ApiGetOrderList = (param) => get("/api/user/consultation/orderList", param)

//获取消息列表
export const ApiGetMessageList = (param) => get("/api/user/consultation/messageList", param)
//获取消息详细信息
export const ApiGetMessageRecord = (data) => get("/api/user/consultation/messageRecord", data)

//取消订单
export const ApiCancelOrder = (id) => post("/api/user/consultation/cancelOrder/" + id)


//结束咨询
export const ApiCompleteOrder = (id) => post("/api/user/consultation/completeOrder/" + id)



//打分
export const ApiOrderComment = (data) => post("/api/user/consultation/orderComment", data)


/* localhost:94/api/user/consultation/doctorComment?doctor_id=1&size=20&page=1 */

export const ApiGetDoctorComment = (data) => get("/api/user/consultation/doctorComment", data)

export const ApiGetSearch = (data) => get("/api/user/consultation/search", data)

//医生搜索
export const ApiGetDoctorList = (data) => get("/api/user/consultation/doctorList", data)


//保存用户信息
export const ApiEditUserInfo = (id, params) => post("/api/user/user/changeUserInfo/" + id, params)



//获取药品列表
export const ApiGetMedicineList = (params) => get("/api/user/medicine/medicineList", params)


//获取邮寄地址


//查看联系人
export const ApiGetaddressList = () => get("/api/user/user/addressList")
//添加联系人
export const ApiAddaddressList = (params) => post("/api/user/user/createAddress", params)
//修改联系人
export const ApiEditaddressList = (id, params) => post("/api/user/user/updateAddress/" + id, params)
// 删除联系人
export const ApiDeladdressList = (id) => del("/api/user/user/deleteAddress/" + id)
//是否默认就诊人
export const ApiDefaultAddress = (id) => post("/api/user/user/defaultAddress/" + id)


export const ApiMedicineOrder = (data) => post("/api/user/medicine/order", data)





export const ApiGetOrderListDrug = (id) => get("/api/user/medicine/orderList")


export const ApiGetOrderListDrugById = (id) => get("/api/user/medicine/orderDetail/" + id)



export const ApiOrderDrug = (id) => post("/api/user/medicine/pay/" + id)


export const ApiPayTest = (data) => post("/api/user/user/payTest", data)


//获取文章列表
export const ApiGetArticleList = (data) => get("/api/user/user/articleList", data)

export const ApiGetSet = () => get("/api/user/user/getSet2")



//获取医院信息列表
export const ApiGetHospitalInfo = () => get("/api/user/common/getHospitalInfo")

export const ApiGetSubDepartment = () => get("/api/user/common/getSubDepartment")

export const ApiCaptchaCodeLogin = (params) => post("/api/user/user/captchaCodeLogin", params)

export const ApiCaptchaCode = (params) => post("/api/user/user/getCaptchaCode", params)
//缴费记录
export const ApiPayRecord = () => get("/api/user/user/payRecord")

//医嘱列表
export const ApiAdviceList = () => get("/api/user/common/adviceList")

//添加投诉和建议

export const setComplaint = (data) => post("/api/user/common/complaint", data)

export const getComplaint = () => get("/api/user/common/complaintList")


//收藏医生

export const getCollectDoc = (data) => post("/api/user/user/collect", data)

//获取医生收藏列表

export const getCollectListDoc = () => get("/api/user/user/collectList")



//这个是团队问诊的界面
export const getDoctorTeamList = () => get("/api/user/consultation/doctorTeamList")


//获取快递费用
export const getLogisticsFee = () => get("/api/user/medicine/logisticsFee")


//获取房间数
export const getEnterRoom = (data) => post("/api/user/deepSeek/enterRoom", data)
//获得房间
export const sendMessage = (data) => dep("/api/user/deepSeek/message", data)


//患者病历列表
export const caseHistoryList = (data) => get("/api/user/user/caseHistoryList", data)

//获取物流费用
export const getDeliverPrice = (data) => get("/api/user/common/getDeliverPrice", data)


//获取MDT问诊数据
export const getDiseaseList = (data) => get("/api/user/MDT/diseaseList", data)

//提交MDT问诊
export const getDiseaseOrder = (data) => post("/api/user/MDT/order", data)

//获取id卡字段信息
export const ApiMDTOrder = (id) => post("/api/user/MDT/pay/" + id)

//获取MDT列表
export const ApiMDTOrderList = (params) => get("/api/user/MDT/orderList", params)


export const ApiCancelOrderList = (id) => post("/api/user/MDT/cancelOrder/" + id)


export const ApiOrderInvoice = (id) => get("/api/user/consultation/invoice/" + id)
export const ApiOrderGetInvoice = (id) => get("/api/user/consultation/getInvoice/" + id)
export const ApiUserRealNameCheck = (data) => post("/api/user/user/userRealNameCheck", data)
/* api/user/common/getHospitalInfo */

/* sub_department_id=&level=&medical_type=&consultation_type=&name= */

//
//获取患者信息














/*  
//专科护理
export const ApiGetSpecialList = () => get("/api/user/home/hotItems")

export const ApiSpecialList = (params) => get("/api/user/home/itemList", params)

//获取到专科护理详情页面
export const ApiItemDetail = (id) => get("/api/user/home/itemDetail/" + id)




//查看联系人
export const ApiContactList = () => get("/api/user/user/contactList", )
//添加联系人
export const ApiAddContact = (params) => post("/api/user/user/createContact", params)
//修改联系人
export const ApiEditContact = (id, params) => post("/api/user/user/updateContact/" + id, params)
// 删除联系人
export const ApiDelContact = (id) => del("/api/user/user/deleteContact/" + id)







//获取验证码

//验证码登录

//修改密码
export const ApiChangePassword = (params) => post("/api/user/user/changePassword", params)

//检验验证码
export const ApiCheckCaptchaCode = (params) => post("/api/user/user/checkCaptchaCode", params)

//修改手机号
export const ApiChangePhone = (params) => post("/api/user/user/changePhone", params)



//订单下单
export const ApiOrder = (params) => post("/api/user/order/order", params)
export const ApiOrderList = (params) => get("/api/user/order/orderList", params)
export const ApiOrderPay = (id) => post("/api/user/order/pay/" + id)
export const ApiCancelPay = (id, params) => post("/api/user/order/cancelOrder/" + id, params)
export const ApiOrderUserComment = (data) => post("/api/user/order/orderUserComment", data)
export const ApiSearchComment = (id) => get("/api/user/order/orderCommentList/" + id)
export const ApiMyComment = () => get("/api/user/order/myComment")
export const ApiOrderDelayApply = (data) => post("/api/doctor/order/orderDelayApply", data)
export const ApiOrderDelayList = () => get("/api/user/order/orderDelayList")
export const ApiOrderDelayHandle = (data) => post("/api/user/order/orderDelayHandle", data)
export const Apieventrecord = (params) => get("/api/eventrecord", params)
export const ApihandleById = (params, id) => post("/api/eventrecord/handle/" + id, params)
export const ApiUpload = (params) => post("/api/common/upload", params)
export const ApiEventUploadFile = (params) => post("/api/eventrecord/wx/uploadFile", params)
export const ApiGetLocation = (params) => post("/api/user/report/location", params)
export const Apicontactor = () => get("/api/user/member/department")
export const ApisendSms = () => post("/api/eventrecord/sos/sendSms")
export const ApiUser = (params) => get("/api/user", params)
export const ApiAllocation = (id, params) => post("/api/eventrecord/allocation/" + id, params)
export const ApiReview = (id, params) => post("/api/eventrecord/review/" + id, params)
export const ApiPhone = (params) => get("/api/person/searchList", params)
export const ApiCategoryList = () => get("/api/user/home/categoryList")

export const ApiGetOrderTimeList = () => get("/api/user/order/getOrderTimeList")
export const getCustomerPhone = () => get("/api/user/user/getCustomerPhone")
export const getConfig = () => get("/api/admin/system/getConfig")*/